package com.stm.bi.etl.prod;

import org.springframework.stereotype.Component;

import java.util.*;

//@Component
public class AdsProdCategoryEtlTask extends AbsProdEtlTask {

    @Override
    public List<Map> transform(Long orgId, String orgNo, List<Map> dataList) {
        return dataList;
    }

    @Override
    public void load(Long orgId, String orgNo, List<Map> dataList) {
        dorisLoadRepository.putLoad("ads_res_product_category_sales",dataList);
    }


    @Override
    public String getTaskName() {
        return "商品-品类销售额汇总";
    }

    @Override
    public String getGroupField() {
        return "category_code";
    }

    @Override
    public String getSelectSql() {
        return "/sql/prod/category.sql";
    }

    @Override
    public String getSelectBeforeDataSql() {
        return "/sql/prod/category_before.sql";
    }

//    @Override
//    public String getInventSql() {
//        return "/sql/prod/category_inventory.sql";
//    }
}
